<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\modules\groups\models\Useringroups */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="useringroups-form">

    <?php $form = ActiveForm::begin(); ?>

    <div class="col-sm-4">
    <?= $form->field($model, 'user_id')->textInput() ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'groupID')->textInput() ?>
</div>
<div class="col-sm-4">
    <?= $form->field($model, 'managerGroup')->textInput(['maxlength' => true]) ?>
</div>
    <div class="form-group-butons">
        <?= Html::submitButton($model->isNewRecord ? '创建' : '修改', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
